package com.mf.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据字典
 *
 * @author mf
 * @since 2024-07-05
 */
@Getter
@ToString
@Setter
@TableName("dto_dictionary")

public class Dictionary implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典值
     */
    private String dctValue;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空")
    private String dvtLabel;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空")
    private String code;
    /**
     * 系统编号
     */
    @NotBlank(message = "系统编号不能为空")
    private String systemCode;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 0:启用;1:禁用
     */
    private Integer status;

    /**
     * 可编辑角色(多个逗号拼接)
     */
    private String editRole;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}